<?php
class Controller_Board extends FLEA_Controller_Action
{
    /**
     * 构造函数
     *
     * @return Controller_Login
     */
    function Controller_Board() {
        
    }
    /**
     * 显示平台页面
     *
     */
    function actionIndex() {
			include(APP_DIR . '/BoardIndex.php');
    }    
     /**
     * 显示顶部
     *
     */
    function actionTopnav() {
        $dispatcher =& $this->_getDispatcher();
        $user = $dispatcher->getUser();
        //$ui =& FLEA::initWebControls();
        include(APP_DIR . '/boardTopnav.php');
    }  
    /**
     * 显示左侧
     *
     */
    function actionSidebar() {
        // 首先定义菜单
        $catalog = FLEA::loadFile('Config_Menu.php');
        // 借助 FLEA_Dispatcher_Auth 对用户角色和控制器 ACT 进行验证
        $dispatcher =& $this->_getDispatcher();
        include(APP_DIR . '/boardSidebar.php');
        
    }     
    /**
     * 显示欢迎页面
     *
     */
    function actionWelcome() {
    	dump($_SESSION);
    	dump($GLOBALS[G_FLEA_VAR]);
    }  
}    
?>